package org.batatasframework.support.searchable;

public class FieldQueryedLinkage extends FieldQueryed{
	
	public final static int LINKAGE_TYPE = 200;

	private final String idField;
	private final String nameField;
	private final String url;
	private final String initParam;
	private final String paramName;
	private final String[] fields;
	
	public FieldQueryedLinkage(String name, String title, 
			String idField, String nameField,
			String url, String initParam, String paramName,
			String[] fields) {
		super(name, title, LINKAGE_TYPE);
		
		this.idField = idField;
		this.nameField = nameField;

		this.url = url;
		this.initParam = initParam;
		this.paramName = paramName;
		
		this.fields = fields;
	}

	public String[] getFields() {
		return fields;
	}

	public String getIdField() {
		return idField;
	}

	public String getNameField() {
		return nameField;
	}

	public String getUrl() {
		return url;
	}

	public String getInitParam() {
		return initParam;
	}

	public String getParamName() {
		return paramName;
	}
}
